package com.miao.activity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author xk
 * @email 2337156522@QQ.com
 * @date 2022-02-22 16:35:05
 */
@Data
@TableName("miao_activity")
public class MiaoActivityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀商品表主键
	 */
	@TableId
	private Integer miaoId;
	/**
	 * 商品id
	 */
	private Integer goodsId;
	/**
	 * 秒杀价
	 */
	@TableField(exist = false)
	private Integer userId;

	@TableField(exist = false)
	private Integer count;

	private BigDecimal goodsPrice;
	/**
	 * 库存数量
	 */
	private Integer stockCount;
	/**
	 * 秒杀开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startDate;
	/**
	 * 秒杀结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endDate;


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getMiaoId() {
		return miaoId;
	}

	public void setMiaoId(Integer miaoId) {
		this.miaoId = miaoId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public Integer getStockCount() {
		return stockCount;
	}

	public void setStockCount(Integer stockCount) {
		this.stockCount = stockCount;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
}
